 <!--   <form id="Org-form" name="Org-form"> -->
<?php echo $this->Form->create('Organisation', array('default' => false, 'id' => 'org-form', 'url' => array('controller' => 'Administration', 'action' => 'add'),'inputDefaults' => array('label' => false,'div' => false)));?>
       <div class="pane-header">
           Organisation Settings Panel
       </div>
       <div id="config-details-box">
              <div class="pane-sub-header">
                     <strong>Basic Information</strong>
              </div>
              <div id="details-form-window">
              <table width="100%">
                       <tr>
                         <td align="left" valign="middle" nowrap >Name</td>
                         <th align="left" valign="middle">
                               <!-- <input type="text" name="church-name" id="church-name" value="<?php //echo $church['Church']['church_name'];  ?>" class="validate[required] church-name" /> -->
                             <?php echo $this->Form->input('name', array('div' => false, 'label' => false, 'class' => 'validate[required]', 'value'=>''.$Org['Organisation']['name'].'')); ?>
                         </th>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Registration Number</td>
                         <td align="left" valign="middle">
                               <!--  <input name="registration-number" id="registration-number" value="<?php //echo $church['Church']['registration_number'];  ?>"  class="validate[required]  registration-number" /> -->
                                 <?php echo $this->Form->input('registration_number', array('div' => false, 'label' => false, 'class' => 'validate[required]', 'value'=>''.$Org['Organisation']['registration_number'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Vision</td>
                         <td align="left" valign="middle">
                              <!--   <textarea name="vision" id="vision" cols="25" rows="3">
                                <?php //echo $church['Church']['vision'];  ?></textarea>  -->
                                <?php echo $this->Form->input('vision', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['vision'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Missions</td>
                         <td align="left" valign="middle"> 
                            <!--  <textarea name="missions" id="missions"><?php //echo $church['Church']['missions'];  ?></textarea> -->
                             <?php echo $this->Form->input('missions', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['missions'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Date Of Establishment</td>
                         <td align="left" valign="middle">
                          <!-- <input type="text" name="birthday" id="birthday" class="date-picker" value="<?php //echo $church['Church']['church_birthday'];  ?>" />  -->
                               <?php echo $this->Form->input('date_of_establishment', array('type'=>'text','div' => false, 'label' => false, 'class' => 'date-picker', 'size' => '50', 'value'=>''.$Org['Organisation']['date_of_establishment'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>History</td>
                         <td align="left" valign="middle">
                             <!-- <textarea name="history" id="history" cols="25" rows="3"><?php //echo $church['Church']['church_history'];  ?></textarea>  -->
                              <?php echo $this->Form->input('history', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['history'].'')); ?> 
                         </td>
                       </tr>
                     </table>
              </div>
       </div>
       <div id="config-address-box">
              <div class="pane-sub-header">
                     <strong>Address Information</strong>
              </div>
              <div id="address-form-window">
              <table width="100%">
                       <tr>
                         <td align="left" valign="middle" nowrap>Location Name</td>
                         <th align="left" valign="middle"> 
                            <!-- <input type="text" name="location" id="location" value="<?php //echo $church['Church']['location'];  ?>" /> -->
                             <?php echo $this->Form->input('location', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['location'].'')); ?>
                         </th>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>City</td>
                         <td align="left" valign="middle"> 
                            <!-- <input type="text" name="city" id="city" value="<?php //echo $church['Church']['city'];  ?>"> -->
                             <?php echo $this->Form->input('city', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['city'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Country</td>
                         <td align="left" valign="middle"> 
                            <!--  <input type="text" name="country" id="country" value="<?php //echo $church['Church']['country'];  ?>"> -->
                             <?php echo $this->Form->input('country', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['country'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Street Number</td>
                         <td align="left" valign="middle"> 
                            <!-- <input type="text" name="street-number" id="street-number" value="<?php //echo $church['Church']['street_number'];  ?>"> -->
                             <?php echo $this->Form->input('street_number', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['street_number'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>ZipCode</td>
                         <td align="left" valign="middle"> 
                            <!-- <input type="text" name="zipcode" id="zipcode" value="<?php //echo $church['Church']['zipcode'];  ?>"> -->
                             <?php echo $this->Form->input('zipcode', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['zipcode'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Telephone 1</td>
                         <td align="left" valign="middle"> 
                            <!-- <input type="text" name="telephone-1" id="telephone-1" value="<?php //echo $church['Church']['telephone_1'];  ?>"> -->
                             <?php echo $this->Form->input('telephone_1', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['telephone_1'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Telephone 2</td>
                         <td align="left" valign="middle">
                             <!-- <input type="text" name="telephone-2" id="telephone-2" value="<?php //echo $church['Church']['telephone_2'];  ?>"> -->
                             <?php echo $this->Form->input('telephone_2', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['telephone_2'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Fax Number</td>
                         <td align="left" valign="middle"> 
                            <!-- <input type="text" name="fax-number" id="fax-number" value="<?php //echo $church['Church']['fax_number'];  ?>"> -->
                             <?php echo $this->Form->input('fax_number', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['fax_number'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Email 1</td>
                         <td align="left" valign="middle"> 
                            <!-- <input type="text" name="email-1" id="email-1" value="<?php //echo $church['Church']['email_1'];  ?>"> -->
                             <?php echo $this->Form->input('email_1', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['email_1'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Email 2</td>
                         <td align="left" valign="middle"> 
                            <!-- <input type="text" name="email-2" id="email-2" value="<?php //echo $church['Church']['email_2'];  ?>"> -->
                             <?php echo $this->Form->input('email_2', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['email_2'].'')); ?>
                         </td>
                       </tr>
                       <tr>
                         <td align="left" valign="middle" nowrap>Postal Box</td>
                         <td align="left" valign="middle">
                             <!-- <textarea name="postal-box" id="postal-box" cols="25" rows="3"><?php //echo $church['Church']['postal_box'];  ?></textarea> -->
                             <?php echo $this->Form->input('postal_box', array('div' => false, 'label' => false, 'class' => '', 'value'=>''.$Org['Organisation']['postal_box'].'')); ?>
                        </td>
                       </tr>
                     </table>
              </div>
       </div>
        <div id="config-actions-buttons">
                 <?php echo $this->Form->button($this->Html->image('ico-49.gif', array('width' => '16', 'height' => '16', 'align' => 'left', 'border' => '0')).'&nbsp;Save', array('div' => false, 'label' => false, 'class' => 'save','id' => 'save-btn', 'type'=>'submit')); ?>

                <?php echo $this->Form->button('Upload Logo', array('div' => false, 'label' => false, 'class' => 'upload','id' => 'upload-btn', 'type'=>'submit')); ?>

                <?php echo $this->Form->button($this->Html->image('ico-43.png', array('width' => '16', 'height' => '16', 'align' => 'left', 'border' => '0')).'&nbsp;Cancel', array('div' => false, 'label' => false, 'class' => 'cancel','id' => 'cancel-btn', 'type'=>'reset')); ?>

        </div>
         <?php echo $this->Form->input("Organisation.id", array('type'=>'hidden','id'=>'org-id','label' => false, 'value'=>''.$Org['Organisation']['id'].'')); ?> 
         <!-- <input type="hidden" name="church-id" id="church-id" value="<?php //echo $church['Church']['id'];  ?>" />  -->
 <?php echo $this->Form->end();?> 